import { http } from "@/utils/http";
import type { ResultProps } from "@/api/user";

export const getMaterialChartsList = (data?: object) => {
  return http.request<ResultProps<any[]>>("post", "/material/chartsList", {
    data
  });
};

export const getMaterialCharts = (data?: object) => {
  return http.request<ResultProps<any[]>>("post", "/material/charts", {
    data
  });
};

export const getMaterialTopCharts = (data?: object) => {
  return http.request<ResultProps<any[]>>("post", "/material/topCharts", {
    data
  });
};

export const getFormulaCharts = (data?: object) => {
  return http.request<ResultProps<any[]>>("post", "/formula/charts", {
    data
  });
};

export const getFormulaTopCharts = (data?: object) => {
  return http.request<ResultProps<any[]>>("post", "/formula/topCharts", {
    data
  });
};
